//
//  UserCenterViewModel.m
//  CoolTennisBall
//
//  Created by Coollang on 16/8/30.
//  Copyright © 2016年 CoolLang. All rights reserved.
//

#import "UserEquipModel.h"
#import "NSString+Extension.h"

@implementation UserEquipModel

+ (NSDictionary *)defaultPropertyValues
{
    return @{
             @"UserID": @"",
             @"Brand": @"",
             @"VerticalLine": @"",
             @"BuyTime":@"",
             @"Line": @"",
             @"ShoesName": @"",
             @"ShoesBuyTime": @"",
             @"ShoesUrl": @"",
             @"UpdateTime": @"",
             @"RacketUrl": @""
             };
}


- (void)parseEquipDictionary:(NSDictionary *)dictionary {
    if ([dictionary isKindOfClass:[NSDictionary class]] && dictionary.count <= 0) {
        return;
    }
    self.UserID = [NSString checkIfNullWithString:dictionary[@"UserID"]];
    self.Brand = [NSString checkIfNullWithString:dictionary[@"Brand"]];
    self.VerticalLine = [NSString checkIfNullWithString:dictionary[@"VerticalLine"]];
    self.BuyTime = [NSString checkIfNullWithString:dictionary[@"BuyTime"]];
    self.Line = [NSString checkIfNullWithString:dictionary[@"Line"]];
    self.ShoesName = [NSString checkIfNullWithString:dictionary[@"ShoesName"]];
    self.ShoesBuyTime = [NSString checkIfNullWithString:dictionary[@"ShoesBuyTime"]];
    self.ShoesUrl = [NSString checkIfNullWithString:dictionary[@"ShoesUrl"]];
    self.UpdateTime = [NSString checkIfNullWithString:dictionary[@"UpdateTime"]];
    self.RacketUrl = [NSString checkIfNullWithString:dictionary[@"RacketUrl"]];
    
}

@end
